from base.base import Base


class ShopcartBase(Base):
    def Shopcart_button(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/add_cart_tv"]'

    def bookname_button(self):
        return '//android.widget.CheckBox[@resource-id="com.dangdang.buy2:id/color_size_rb" and @text="硅谷之谜+浪潮之巅+文明之光"]'
    def sure_button(self):
        return '//android.widget.TextView[@resource-id="com.dangdang.buy2:id/product_select_color_size_confirm"]'